package com.bootdo.item.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 商品分类
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-02-02 17:38:33
 */
@Entity
@Table(name = "biz_item_category")
public class ItemCategoryDO implements Serializable {
    private static final long serialVersionUID = 1L;

        //
        @Id
    @GeneratedValue
        @Column(name = "id")
    private Long id;
        //上级id
        @Column(name = "parent_id")
    private Long parentId;
        //名称
        @Column(name = "name")
    private String name;
        //-1已经删除，0 正常
        @Column(name = "del_flag")
    private Integer delFlag;
    
        /**
    * 设置：
    */
    public void setId(Long id) {
       this.id = id;
    }

    /**
    * 获取：
    */
    public Long getId() {
            return id;
        }
        /**
    * 设置：上级id
    */
    public void setParentId(Long parentId) {
       this.parentId = parentId;
    }

    /**
    * 获取：上级id
    */
    public Long getParentId() {
            return parentId;
        }
        /**
    * 设置：名称
    */
    public void setName(String name) {
       this.name = name;
    }

    /**
    * 获取：名称
    */
    public String getName() {
            return name;
        }
        /**
    * 设置：-1已经删除，0 正常
    */
    public void setDelFlag(Integer delFlag) {
       this.delFlag = delFlag;
    }

    /**
    * 获取：-1已经删除，0 正常
    */
    public Integer getDelFlag() {
            return delFlag;
        }
    }
